/* 全局样式 */
:root {
  --primary-color: #8B0000;
  --secondary-color: #FFF0F5;
  --text-color: #333;
  --font-family: 'Microsoft YaHei', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--secondary-color);
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: url('../images/index.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  z-index: -1;
  pointer-events: none;
}

/* 导航栏样式 */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

/* 主要内容区域 */
.main-content {
  max-width: 1200px;
  width: 100%;
  margin: 80px auto 0;
  padding: 2rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* 页面标题 */
.page-title {
  text-align: center;
  margin: 1rem 0 2rem;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

/* 内容卡片 */
.content-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(139, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.content-card ul {
  list-style: none;
  padding: 0;
}

.content-card li {
  margin: 1rem 0;
}

.content-card a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.content-card a:hover {
  color: #d10000;
  text-decoration: underline;
}

/* 页脚 */
.footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1rem;
  width: 100%;
  z-index: 10;
  margin-top: auto;
}